
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 *
 */

package com.hlkj.pay.common.constants;

/**
 * @author HlpayTeam
 * @date 2024/09/08 13:43
 */
public class TokenRedisConstant {

    /**
     * tenant expand info
     */
    public static final String TOKEN_PREFIX = "token:%s";

    /**
     * tenant expand info
     */
    public static final String TOKEN_EXPAND_INFO = TOKEN_PREFIX + "expand_info:";

    /**
     * TOKEN_EXPAND_INFO_EXPIRE_TIME
     */
    public static final Integer TOKEN_EXPAND_INFO_EXPIRE_TIME = 60 * 60 * 24;

    /**
     * tenant data source
     */
    public static final String TOKEN_DATA_SOURCE = TOKEN_PREFIX + "data_source:";

    /**
     * TOKEN_DATA_SOURCE_EXPIRE_TIME
     */
    public static final Integer TOKEN_DATA_SOURCE_EXPIRE_TIME = 60 * 60 * 24;

    /**
     * tenant data source
     */
    public static final String TOKEN_INFO = TOKEN_PREFIX + "info:";

    /**
     * tenant data source
     */
    public static final String TOKEN_USER_AUTH = TOKEN_PREFIX + "auth:user:";

    /**
     * tenant data source
     */
    public static final String TOKEN_USER_AUTH_CODE = TOKEN_PREFIX + "authCode:user:";

    /**
     * tenant data source
     */
    public static final String TOKEN_USER_AUTH_CODE_TIME = TOKEN_PREFIX + "authCodeTime:user:";

    /**
     * TOKEN_USER_AUTH_CODE_TIME_EXPIRE_TIME
     */
    public static final Integer TOKEN_USER_AUTH_CODE_TIME_EXPIRE_TIME = 60;

    /**
     * tenant data source
     */
    public static final String TOKEN_CLIENT_AUTH = TOKEN_PREFIX + "auth:client:";

    /**
     * TOKEN_INFO_EXPIRE_TIME
     */
    public static final Integer TOKEN_INFO_EXPIRE_TIME = 60 * 60 * 24;
    /**
     * TOKEN_INFO_EXPIRE_TIME
     */
    public static final Integer TOKEN_NUL_INFO_EXPIRE_TIME = 60;

    /**
     * tenant data source
     */
    public static final String TOKEN_APPID_INFO = TOKEN_PREFIX + "appid:";

    /**
     * TOKEN_APPID_INFO_EXPIRE_TIME
     */
    public static final Integer TOKEN_APPID_INFO_EXPIRE_TIME = 60 * 60 * 24;

    /**
     * tenant data source
     */
    public static final String TOKEN_DOMAIN_INFO = TOKEN_PREFIX + "domain:";

    /**
     * TOKEN_APPID_INFO_EXPIRE_TIME
     */
    public static final Integer TOKEN_DOMAIN_EXPIRE_TIME = 60 * 60 * 24;
}
